package com.woorigil.social.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.SimpleMappingExceptionResolver;


public class BaseExceptionResolver extends SimpleMappingExceptionResolver {
	private static Log log = LogFactory.getLog(BaseExceptionResolver.class);
	
	@Override
	protected ModelAndView doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) {
		log.error(ex.getMessage(), ex);
		return super.doResolveException(request, response, handler, ex);
	}
}
